package com.zhiyou100.xml.jsoup;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

import java.io.IOException;
import java.net.URL;

public class Demo2 {


    public static void main(String[] args) throws IOException {

//        parse(URL url, int timeoutMillis)：通过网络路径获取指定的html或xml的文档对象
        String path = "https://baijiahao.baidu.com/s?id=1723941151972473874&wfr=spider&for=pc";
        Document document = Jsoup.parse(new URL(path), 10000);
        System.out.println("document = " + document);
    }

}
